<?php
namespace Home\Model;
use Think\Model;
//news_list
class NewsListModel  extends Model  {
	protected $tablePrefix = ''; 
	//字段映射
	protected $_map = array(	'biaoti'	=>'NL_Title',       
								'neirong'  =>'NL_Content',
								);

	protected $_validate = array(
					array("NL_Title","require","标题不能为空" ),
					array("NL_Content","require","内容不能为空" ),
	);

	protected $_auto = array(
					array("NL_CreateTime",  "time",  self::MODEL_INSERT,  'function'  ),
					array("NL_Order",  "getOrder",  self::MODEL_BOTH,  'callback'  ),
		
	);

	protected function getOrder(){

		return 100;
	}
}